﻿
-- ================================================
-- Remarks: 
-- ================================================
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO

IF EXISTS (SELECT * FROM sysobjects WHERE type = 'P' AND name = 'Dasideen_ProjectMemberMaster_GetAll')
	BEGIN
		DROP  Procedure  Dasideen_ProjectMemberMaster_GetAll
	END

GO

CREATE PROCEDURE [Dasideen_ProjectMemberMaster_GetAll] 
-- =============================================
-- Author:		<Sagar s.k>
-- Create date: <17/06/2015>
-- Description:	<Dasideen_ProjectMemberMaster_GetAll>
-- =============================================
-- Add the parameters for the stored procedure here
	(
				@Sys_IsDeleted int = 0,
				@Sys_OrganizationID int = NULL
	)
AS
BEGIN
	-- SET NOCOUNT ON added to prevent extra result sets from
	-- interfering with SELECT statements.
	SET NOCOUNT OFF;

	SELECT	    [ProjectMemberKey],
				[ProjectMemberUserKey] ,
				[ProjectMemberFirstName] ,
				[ProjectMemberLastName],
				[ProjectMemberPrimaryEmailID] ,
				[ProjectMemberCodePlexID] ,
				[ProjectMemberSkypeID] ,
				[ProjectMemberMicrosoftID] ,
				[ProjectMemberGoogleID] ,
				[ProjectMemberTimeZoneReference] ,
				[ProjectMemberTimeZoneName] ,
				[ProjectMemberTimeZoneAbbreviation] ,
				[ProjectMemberCountryName] ,
			    [ProjectMemberCityName] ,
				[ProjectMemberDateOfJoining] ,
				[ProjectMemberIsMemberOfFacebook] ,


				[Sys_DateOfCreation] ,
				[Sys_DateOfModification] ,
				[Sys_CreatedByID] ,
				[Sys_ModifiedByID] ,
				[Sys_DeleteType] ,
				[Sys_IsDeleted] ,
				[Sys_OrganizationID] ,
				[Sys_InitialPrimaryKeys] ,
				[Sys_WorkstationName]

	FROM	    [ProjectMemberMaster]
	WHERE		
		(
			[Sys_IsDeleted] = @Sys_IsDeleted AND
			[Sys_OrganizationID] = ISNULL( @Sys_OrganizationID, [Sys_OrganizationID] )
		);
END
GO
 